package initiallize

import (
	"github.com/gin-gonic/gin"
	"shop_webs/userop_web/middlewares"
	"shop_webs/userop_web/router"
)

func Routers() *gin.Engine {
	Router := gin.Default()
	Router.Use(middlewares.Cors())
	ApiGroup := Router.Group("/up/v1")

	router.InitUseropRouter(ApiGroup)
	return Router
}
